#define  _CRT_SECURE_NO_WARNINGS  1
#define N 10
#include <stdio.h>
int main()
{
	int a[N] = { 1 };
	printf("%d\n", a[0]);
	int i = 0;
	for (i = 1; i < N; i++)
	{
		int j = 0;
		for (j = i; j >= 1; j--)
		{
			a[j] = a[j] + a[j - 1];
		}
		for (j = 0; j <= i; j++)
		{
			printf("%-4d", a[j]);
		}
		printf("\n");
	}


	return 0;
}